<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>订单列表</title>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="email=no"/>
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link rel="stylesheet" href="./orderList.css">
    <link href="/css/icon.css" rel="stylesheet" type="text/css"/>

</head>

<body>
    <div class="tab">
        <div>
            <p onclick="tabcheck(0)" class="active">全部</p>
            <p onclick="tabcheck(1)">待付款</p>
            <p onclick="tabcheck(2)">待提货</p>
            <p onclick="tabcheck(3)">待评论</p>
        </div>
    </div>
    <div class="main">
        <div class="all">
                <div class="orderlist">
                    <div class="store">
                        <div>
                            <icon class="icon shop" style="color:#8a8a8a;font-size:20px"></icon>
                            <span>眼管家</span>
                        </div>
                        <p>已取消 <span>(系统)</span></p>
                    </div>
                    <div class="num">
                        <p>2019-04-25 10:43:32</p>
                        <p>SD1565656536</p>
                    </div>
                    <div class="detail">
                        <img src="https://sxftech-file.oss-cn-shenzhen.aliyuncs.com/835a4b29ad39fb8d5f6486dbc32d4357.jpg" alt="">
                        <div>
                            <p>博士伦博视顿新洁护理液</p>
                            <p>护理液105</p>
                        </div>
                    </div>
                    <p class="amount">
                        共<span>1</span>件商品  合计:<span>￥200.00</span>
                    </p>
                </div>
                <div class="orderlist">
                    <div class="store">
                        <div>
                            <icon class="icon shop" style="color:#8a8a8a;font-size:20px"></icon>
                            <span>眼管家</span>
                        </div>
                        <p>已取消 <span>(系统)</span></p>
                    </div>
                    <div class="num">
                        <p>2019-04-25 10:43:32</p>
                        <p>SD1565656536</p>
                    </div>
                    <div class="detail">
                        <img src="https://sxftech-file.oss-cn-shenzhen.aliyuncs.com/835a4b29ad39fb8d5f6486dbc32d4357.jpg" alt="">
                        <div>
                            <p>博士伦博视顿新洁护理液</p>
                            <p>护理液105</p>
                        </div>
                    </div>
                    <p class="amount">
                        共<span>1</span>件商品  合计:<span>￥200.00</span>
                    </p>
                </div>
        </div>
        

    </div>
    
    <script>
        let tablist = document.querySelectorAll('.tab div p')
        function tabcheck(index){
            for(let item of tablist){
                item.className =''
            }
            tablist[index].className ='active'
        }

        
    </script>
    
</body>
</html>